<!--COLUMN 1-->
<?php $session->flash(); ?> 
<div class="FourColGrid_c1">
       <?php 
            if($locum['Locum']['Avatar'])
            {
                echo '<img src="'. Router::url('/').'app/webroot/img/avatar/'.$locum['Locum']['Avatar'].'" width="100" height="100" alt="Locum">';
            }else
            {
                echo '<img src="'.Router::url('/').'app/webroot/img/avatar.jpg" width="100" height="100" alt="Locum">';
            }
          ?>
</div>
<!--COLUMN 1-->

<!--COLUMN 2-->
<div class="FourColGrid_c2">
<h1 class="TitleOne"><?php echo $GLOBALS['Salutations'][$locum['Locum']['Salutation']].' '.$locum['Locum']['FirstName'].' '.$locum['Locum']['LastName'] ; ?></h1>
<h2 class="TitleTwo"><?php echo $GLOBALS['Country'][$locum['Locum']['Country_id']];?></h2>
<p>&nbsp;</p>
<p>
<b>Member since</b> <?php echo date('Y-m-d',strtotime($locum['Locum']['MatchMemberSince']))?><br>
<b>Last logged in</b> <?php echo $locum['Locum']['LastLoggedIn']?><br />
<b>Pharmacist registration</b> <?php echo  $locum['Locum']['DateOfPharmacist'];?><br>
<b>GPHC</b> <?php echo $locum['Locum']['GPHCNumber']?>
</p>
<p>&nbsp;</p>
      
<h4 class="TitleTwo">IT Compatibility</h4>
<ul>
<?php 
            if(trim($locum['Locum']['ITCompatibility']))
            {
               $a_ITCompatibility = explode(',',$locum['Locum']['ITCompatibility']);
                foreach ($a_ITCompatibility as $k=>$value)
                {
                    echo '<li>'.$GLOBALS['ITCompatibility'][$value].'</li>' ;
                }
            }
            
?>
</ul>
<p>&nbsp;</p>

<p><b>EPS1 Ready</b> - <?php echo trim($locum['Locum']['EPS1Ready'])? 'Yes':'No'; ?><br>
<b>EPS2 Ready</b> - <?php echo trim($locum['Locum']['EPS2Ready'])? 'Yes':'No'; ?></p>
<p>&nbsp;</p>
  
<h4 class="TitleTwo">Essential Services</h4>
<ul class="listOne">
        <?php 
            if(trim($locum['Locum']['EssentialServices']))
            {
                $a_EssentialServices = explode(',',$locum['Locum']['EssentialServices']);
            
                foreach ($a_EssentialServices as $k=>$value)
                {
                    echo '<li>'.$GLOBALS['EssentialServices'][$value].'</li>' ;
                }
            }
        ?>
</ul>
<p>&nbsp;</p>

<h4 class="TitleTwo">Advanced Services</h4>
<ul class="listOne">
        <?php 
            if(trim($locum['Locum']['AdvancedServices']))
            {
                $a_AdvancedServices = explode(',',$locum['Locum']['AdvancedServices']);
            
                foreach ($a_AdvancedServices as $k=>$value)
                {
                    echo '<li>'.$GLOBALS['AdvancedServices'][$value].'</li>' ;
                }
            }
        ?>
</ul>
<p>&nbsp;</p>
    
<h4 class="TitleTwo">Enhanced Services</h4>
<ul class="listOne">
        <?php 
            if(trim($locum['Locum']['EnhancedServices']))
            {
                $a_EnhancedServices = explode(',',$locum['Locum']['EnhancedServices']);
            
                foreach ($a_EnhancedServices as $k=>$value)
                {
                    echo '<li>'.$GLOBALS['EnhancedServices'][$value].'</li>' ;
                }
            }
        ?>
</ul>
<p>&nbsp;</p>

<h4 class="TitleTwo">Patient Group Directives</h4>
<p><?php echo $locum['Locum']['PatientGroupDirectives']?></p>
<p>&nbsp;</p>

<h4 class="TitleTwo">Recomendations</h4>
<p>This Locum has been recommended by <b class="blue"><?php echo $locum['Locum']['i_NumberMaxRate']?></b> Pharmacies</p>
<p>&nbsp;</p>

<h4 class="TitleTwo">Match Rating</h4>
<p>&nbsp;</p>
<img src="<?php echo  Router::url('/')?>img/stars_<?php echo $locum['Locum']['i_RateAVG']?>.png" width="294" height="28" alt="rating">
<p>&nbsp;</p>
<p>This Locum has an average Pharmacy Match rating of <b class="blue"><?php echo $locum['Locum']['i_RateAVG']?></b> stars.</p>
</div>
<!--COLUMN 2-->

<!--COLUMN 3-->
<div class="FourColGrid_c3">
<div id="eventCalendarNoCache"></div>
	<script>
	 $(document).ready(function() {
		$("#eventCalendarNoCache").eventCalendar({
		 eventsjson: '<?php echo Router::url('/').'locums/getJson/'.$id ?>',
		cacheJson: false,
		multiple: true,
		allowClick:false,
		});
	});
	</script>

<p>Calendar key</p>
<ul class="listTwo">
<li class="unavailable"> = Booking</li>
<li class="available"> = No Booking</li>
</ul>

</div>
<!--COLUMN 3-->

<!--COLUMN 4-->
<div class="FourColGrid_c4">
<h6 class="TitleFive">Vacancy Search</h6>
<?php echo $this->element('search');?>
<p>&nbsp;</p> 

<h6 class="TitleFive">Your applications</h6>
<?php if($myApplied)
     {?>
      <ul class="listThree">
        <?php
            foreach($myApplied as $apply)
            {
               echo '<li>'.$html->link(__($apply['Vacancy']['title'], true), array('controller'=>'locums','action' => 'view_apply','id'=>$apply['Apply']['id'])).'</li>';    
            }
        ?>
      </ul>
<?php } ?>
 
<p>&nbsp;</p>
<br>
<?php echo $this->element('invite_locum');?>  
<p>Your Account is <b><?php echo $locum['Locum']['Rate']?>%</b> complete</p>

</div>
<!--COLUMN 4-->







